<!DOCTYPE html>
<html>

<head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
    <title>车辆定位监控系统</title>
    <link rel="stylesheet" href="../lib/layui-v2.5.6/layui/css/layui.css">

    <style>
        /* 全局 */
        html {
            background-color: #f2f2f2;
            color: #666;
        }
    </style>
</head>

<body id="mainbody" class="layui-layout-body">
    <div class="layui-layout layui-layout-admin">
        <div class="layui-header">
            <div class="layui-logo" style="font-size: 20px;">车辆定位监控系统</div>


            <div class="layui-side layui-bg-black">
                <div class="layui-side-scroll">
                    <!-- 左侧导航区域（可配合layui已有的垂直导航） -->
                    <ul class="layui-nav layui-nav-tree" lay-filter="test">
                        <li class="layui-nav-item layui-nav-itemed">
                            <a class="" href="javascript:;" link="page/location.html">实时定位</a>
                        </li>
                        <li class="layui-nav-item layui-nav-itemed">
                            <a class="" href="javascript:;" link="page/track.html">轨迹回溯</a>
                        </li>
                        <li class="layui-nav-item layui-nav-itemed">
                            <a class="" href="javascript:;" link="page/locationGaoDe.html">高德实时定位</a>
                        </li>
                        <li class="layui-nav-item layui-nav-itemed">
                            <a class="" href="javascript:;" link="page/trackGaoDe.html">高德轨迹回溯</a>
                        </li>
                        <!-- <li class="layui-nav-item layui-nav-itemed">
                            <a class="" href="javascript:;" link="page/electronicFence.html">电子围栏</a>
                        </li> -->
                    </ul>
                </div>
            </div>

            <div class="layui-body" style="bottom: 0px;">
                <iframe id="iframeMain" src="" style="padding: 15px;width: 100%;height:90%;"></iframe>
            </div>

            <div class="layui-footer">
                <!-- 底部固定区域 -->
                © 沈阳达能电安全高新产业技术研究院有限公司
            </div>
        </div>
        <script src="../lib/layui-v2.5.6/layui/layui.js"></script>

        <script>
            //JavaScript代码区域
            layui.use(['jquery', 'element'], function () {
                var element = layui.element;
                var $ = layui.$;
                var timerArr = [];

                $(function () {
                    $("li>a").click(function () {
                        $("#iframeMain").attr("src", $(this).attr("link"))
                    })

                })


            });
        </script>
</body>

</html>